recent-manager: Add a limit to the list's size
authorLauri Kasanen <curaga@operamail.com>
Thu, 27 Oct 2016 13:51:29 +0000 (16:51 +0300)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 10 Nov 2016 22:09:45 +0000 (17:09 -0500)
commit0d364173f61feb4d089eaa95ace9c1cc13681339
tree8112d5a5cbda5877088b6272d002250794173b9a
parent3c27774a5d7251df9adc6c4d80071ac6f1153e17
recent-manager: Add a limit to the list's size

This fixes a DOS where any app can cause all running gtk apps
to use arbitrary amounts of memory.

Originally reported against mate-panel, where running a big slideshow
in eye-of-mate caused increasing RAM usage in mate-panel.

v2: Hardcode the value
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=773587
gtk/gtkrecentmanager.c